﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using demo.DBHelper;
using demo.Entity;

namespace demo.IService
{
    public interface IUserService:IRepositoryDao<Users>
    {
        /// <summary>
        /// 是否已存在账号
        /// </summary>
        /// <param name="account">账号</param>
        /// <returns></returns>
        bool IsExists(string account);

        /// <summary>
        /// 通过账号密码获得实体
        /// </summary>
        /// <param name="account">账号</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        Users GetByAccAndPwd(string account, string password);
    }
}
